﻿#ifndef __BENZIER_SCENE_H__
#define __BENZIER_SCENE_H__
#include "cocos2d.h"
#include "math.h"
#include <cmath>
using namespace cocos2d;
using namespace std;
class Benzier
{
public:
	bool m_freeze;
	CCSize visibleSize;
	CCSprite* m_fish;
	CCLayer* m_layer;
	float time ;
	float x, y; //toa do fish
	int n; // so bac.
	
	vector<CCPoint> *p ;
	vector<float> param; // he so'
	CCPoint cur;
	CCPoint old;

	vector<float> getParamBenzier(int );
	void update(float t);
	float factorial(int );
	float binomial(int , int );
	float getAngle();

	Benzier(void);
	Benzier(vector<CCPoint>*, CCLayer*);
	~Benzier(void);
};

#endif